

//
//  FLMSearchVC.m
//  FLMSuperS
//
//  Created by xiaoyang on 16/9/27.
//  Copyright © 2016年 FaLaoMiaoNetworkTechnologyCo. All rights reserved.
//

#import "FLMTenNineSearchVC.h"
#import "MerchantSearchView.h"
@interface FLMTenNineSearchVC ()<MerchantSearchTextFieldViewDelegate>

@end

@implementation FLMTenNineSearchVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    MerchantSearchView *merView = [[MerchantSearchView alloc] initSearchViewWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight) Parament:nil search:^(NSString *string) {
        
    }];
    merView.searchTextFieldView.delegate = self;
    [self.view addSubview:merView];
    
    self.view.backgroundColor = [UIColor orangeColor];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
    self.navigationController.navigationBar.hidden = NO;
}

#pragma mark - MerchantSearchTextFieldViewDelegate
- (void)merchantSearchTextFieldViewDidCancel:(MerchantSearchTextFieldView *)textField {
    [self.navigationController popViewControllerAnimated:YES];
}

@end
